﻿<phone:PhoneApplicationPage 
    x:Class="TriangleGame.ImpostazioniPartita"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="UniformToFill" ImageSource="img/bg.png"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,0,0,45" Height="160">
        	<StackPanel.Background>
        		<ImageBrush Stretch="Fill" ImageSource="img/Title.png"/>
        	</StackPanel.Background>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,-45,0,8">
            <TextBlock Height="25" Margin="0,8,0,0" TextWrapping="Wrap" Text="PLAYER 1" Foreground="White" VerticalAlignment="Top" TextAlignment="Center" Width="200" HorizontalAlignment="Center" d:LayoutOverrides="Width"/>
            <TextBlock Height="25" Margin="8,117,0,0" TextWrapping="Wrap" Text="PLAYER 2" Foreground="White"  VerticalAlignment="Top" Width="200" TextAlignment="Center" HorizontalAlignment="Center" d:LayoutOverrides="Width"/>
            <TextBlock Height="25" Margin="8,261,0,0" TextWrapping="Wrap" Text="ROWS" Foreground="White" VerticalAlignment="Top" Width="200" TextAlignment="Center" HorizontalAlignment="Left" d:LayoutOverrides="Width"/>
            <TextBlock Height="25" Margin="0,261,8,0" TextWrapping="Wrap" Text="COLUMNS" Foreground="White" VerticalAlignment="Top" Width="200" TextAlignment="Center" HorizontalAlignment="Right" d:LayoutOverrides="Width"/>
            <TextBox Name="g1" Height="80" Margin="0,33,0,0" TextWrapping="Wrap" Text="G1" VerticalAlignment="Top" Tap="g1_Tap" Width="200" HorizontalAlignment="Center" d:LayoutOverrides="Width" TextAlignment="Center" Foreground="Black" Background="#BFFFFFFF" Style="{StaticResource TextBoxStyle1}" />
            <TextBox Name="g2" Margin="0,142,0,0" TextWrapping="Wrap" Text="G2" Height="80" VerticalAlignment="Top" Tap="g2_Tap" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Center" Width="200" TextAlignment="Center" Foreground="Black" Background="#BFFFFFFF" Style="{StaticResource TextBoxStyle1}" />
            <TextBox Name="righe" Margin="8,269,0,241" TextWrapping="Wrap" Text="4" Tap="righe_Tap" InputScope="Number" MaxLength="1" TextChanged="righe_TextChanged" HorizontalAlignment="Left" Width="200" TextAlignment="Center" Height="80" Foreground="Black" Background="#BFFFFFFF" Style="{StaticResource TextBoxStyle1}" />
            <TextBox Name="colonne" Margin="0,269,8,241" TextWrapping="Wrap" Text="4" Tap="colonne_Tap" InputScope="Number" MaxLength="1" TextChanged="colonne_TextChanged" HorizontalAlignment="Right" Width="200" TextAlignment="Center" Height="80" Foreground="Black" Background="#BFFFFFFF" Style="{StaticResource TextBoxStyle1}" />
            <Button Content="" Height="97" HorizontalAlignment="Center" Margin="0,495,0,0" Name="button1" VerticalAlignment="Top" Width="175" Click="button1_Click" Foreground="White" BorderThickness="0" BorderBrush="{x:Null}" >
            	<Button.Background>
            		<ImageBrush Stretch="UniformToFill" ImageSource="img/play.png"/>
            	</Button.Background>
            </Button>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
